<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "diy_class_grp".
 *
 * @property integer $class_id
 * @property string $grp_list
 */
class DiyClassGrp extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'diy_class_grp';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['class_id'], 'required'],
            [['class_id'], 'integer'],
            [['grp_list'], 'string', 'max' => 255]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'class_id' => Yii::t('app', 'Class ID'),
            'grp_list' => Yii::t('app', 'Grp List'),
        ];
    }
}
